#include "projectinfo.h"

ProjectInfo::ProjectInfo(QWidget *parent) :
    QGroupBox(parent),
    m_ui(new Ui::ProjectInfo)
{
    m_ui->setupUi(this);
}

ProjectInfo::~ProjectInfo()
{
    delete m_ui;
}

void ProjectInfo::changeEvent(QEvent *e)
{
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

void ProjectInfo::setID(QString idN)
{
    m_ui->labelID->setText(QString("Project id: ") +idN);
}

void ProjectInfo::setName(QString idN)
{
    m_ui->labelName->setText(QString("Project name: ") +idN);
}

void ProjectInfo::setAuthor(QString idN)
{
    m_ui->labelAuthor->setText(QString("Project author: ") +idN);
}
